//
//  RequestUrl.h
//  LazyCat
//
//  Created by zhanshu on 15/9/9.
//  Copyright (c) 2015年 zhanshu. All rights reserved.
//

#ifndef LazyCat_RequestUrl_h
#define LazyCat_RequestUrl_h

//#define BaseURL @"http://mtest.ivpin.com"

#define BaseUrl @"http://mtest.ivpin.com"  //接口
#define StaticUrl @"http://mtest.ivpin.com/AppGetway/AppToWeb.aspx?"    //html5
//#define ShoppingOrderBaseUrl @"http://mtest.ivpin.com/AppAutoLogin?"    //购物车的baseUrl
/** 懒猫超市*/
#define LazyMarket BaseUrl @"/LCat/Shop-%@?appname=lanmao&username=%@&x=%f&y=%f&sign=%@"
/** 购物车*/
#define ShoppingCartUrl BaseUrl @"/LCat/ShopCart?appname=lanmao&username=%@&x=%f&y=%f&sign=%@&shopuser=%@"
/** 找回密码*/
#define FinePsw BaseUrl @"/UserCenter/RetrievePassword?appname=lanmao"



/** 我的二维码  含有测试连接 */
#define MyCode BaseUrl @"/WPT-OpenAPI?control=LCatCommon&action=MakeLCatQRCode&data=" BaseUrl @"/LCat/PreRegister?sharedUser=%@"
/** 邀请好友*/
#define HelloFriend BaseUrl @"/LCat/PreRegister?plat=android&appname=lanmao&sharedUser=%@"
//#define MyCode  @"http://mtest.ivpin.com/WPT-OpenAPI?control=LCatCommon&action=MakeLCatQRCode&data=http://mtest.ivpin.com/LCat/PreRegister?sharedUser=%@"
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////

/** 启动app */
//#define GetStarAppMessUrl  BaseUrl @"control=ShopCommon&action=CityID&cityid=610424"
#define GetStarAppMessUrl  BaseUrl @"/WPT-OpenAPI?control=ShopCommon&action=NearData&x=%f&y=%f&sign=%@"
/** 获取验证码*/
#define GetCode BaseUrl @"/WPT-OpenAPI?control=MemberCommon&action=GetCode&username=%@&sign=%@"
/** 注册*/
#define Register BaseUrl @"/WPT-OpenAPI?control=MemberCommon&action=Reg&username=%@&pwd=%@&pwd2=%@&code=%@&sign=%@"

/** 获取一级城市*/
#define GetFirstCity BaseUrl @"/WPT-OpenAPI?control=CityCommon&action=AllCity&sign=%@"
/** 根据ID获取二级城市*/
#define GetSecondCity BaseUrl @"/WPT-OpenAPI?control=CityCommon&action=CityID&cityid=%@&sign=%@"
/** 根据CityID 获取社区数据*/
#define GetShopByCityID BaseUrl @"/WPT-OpenAPI?control=ShopCommon&action=CityID&cityid=%@&sign=%@"
/** 登陆*/
#define Login BaseUrl @"/WPT-OpenAPI?control=MemberCommon&action=Login&username=%@&pwd=%@&usertype=0&sign=%@&shopuser=%@"

/** 首页数据*/
#define GetHomeMessUrl BaseUrl @"/WPT-OpenAPI?control=LCatCommon&action=Index&shopuser=%@&x=%f&y=%f&username=%@&sign=%@"

/** 产品搜索*/
#define SearchProduct BaseUrl @"/WPT-OpenAPI?control=ShopCommon&action=ProSearch&shopuser=%@&curr=%ld&key=%@&sign=%@"

/** 上传头像*/
#define SendHeaderImg BaseUrl @"/WPT-OpenAPI?control=MemberCommon&action=UploadImg&username=%@&type=user&sign=%@"

/** 用户修改信息*/
#define ModifyUserMess BaseUrl @"/WPT-OpenAPI?control=MemberCommon&action=SaveBase&username=%@&mobile=%@&realname=%@&email=%@&cardno=%@&sign=%@"

/** 增加删除购物车  1(1添加 0删除)*/
#define ModifyShoppingCartCount BaseUrl @"/WPT-OpenAPI?control=LCatShop&action=upateShopCart&username=%@&shopuser=%@&productid=%@&type=%d&sign=%@"
/** 版本更新*/
#define UpdateVersion BaseUrl @"/WPT-OpenAPI?control=LCatCommon&action=Update&sign=%@"

/** 获取用户信息*/
#define GetUserMess BaseUrl @"/WPT-OpenAPI?action=GetUserInfo&control=MemberCommon&username=%@&sign=%@"
/** 退出登陆*/
#define LoginOut BaseUrl @"/WPT-OpenAPI?action=SignOut&control=MemberCommon"
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////


/**帮助中心*/
#define GetHelpUrl StaticUrl @"username=%@&action=help&appname=lanmao&x=%f&y=%f&sign=%@"
/** 购物订单*/
#define ShoppingOrderUrl BaseUrl @"/AppAutoLogin?username=%@&action=LCatOrderList&appname=lanmao&x=%f&y=%f&sign=%@"
/**旅游订单*/
//#define OtherOrder StaticUrl @"username=%@&action=mytriporderlist&appname=lanmao&x=%f&y=%f&sign=%@"
/** 常用信息*/
#define NormalMess StaticUrl @"username=%@&action=changyong&appname=lanmao&x=%f&y=%f&sign=%@"
/** 系统公告*/
#define SystemMess StaticUrl @"action=noticecenter&username=%@&appname=lanmao&x=%f&y=%f&sign=%@"
/** 我的钱包（APP）*/
#define MyIncomeInfo StaticUrl @"username=%@&action=myincomeinfo&appname=lanmao&x=%f&y=%f&sign=%@"
/** 我的分享会员(APP)*/
#define MyShareUserList BaseUrl @"/AppAutoLogin?username=%@&action=myshareuserlist&appname=lanmao&x=%f&y=%f&sign=%@"
/** 我的关注（目前没有）*/
#define MyFocusList StaticUrl @"username=%@&action=myguanzhu&appname=lanmao&x=%f&y=%f&sign=%@"
/** 我的收藏*/
#define MyCollection BaseUrl @"/AppAutoLogin?username=%@&action=LCatCollection&appname=lanmao&x=%f&y=%f&sign=%@"
/** 足迹（目前没有）*/
#define MyFootLine StaticUrl @"username=%@&action=myzuji&appname=lanmao&x=%f&y=%f&sign=%@"
/** 关于我们*/
#define AboutUs BaseUrl @"/AppAutoLogin?username=%@&action=lcataboutus&sign=%@"
/** 修改密码*/
#define ModifyPsw BaseUrl @"/AppAutoLogin?username=%@&action=ModifyPWD&sign=%@"

#endif
